package cd.safe.school.data;

import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteDatabase.CursorFactory;
import android.database.sqlite.SQLiteOpenHelper;

public class DownloadDbHelper extends SQLiteOpenHelper {
	public static final String dbName = "download.db";
	public static final int version = 1;

	public DownloadDbHelper(Context context) {
		super(context, dbName, null, version);
	}

	@Override
	public void onCreate(SQLiteDatabase db) {
		db.execSQL("create table download(id integer primary key autoincrement,url text,threadNo integer,vbegin integer,vend integer,progress integer)");
	}

	@Override
	public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {
		// TODO Auto-generated method stub

	}

}
